#include "StdAfx.h"
#include "GenMaterialManager.h"
#include "CascadeShadowMapLogic.h"

CGenMaterialManager*  CGenMaterialManager::mSelf = NULL ;

CGenMaterialManager::CGenMaterialManager(void)
{
}


CGenMaterialManager::~CGenMaterialManager(void)
{
}

void CGenMaterialManager::RegisteMaterialScheme()
{
	Ogre::MaterialManager::getSingleton().addListener( CCascadeShadowMapMaterialListener::getSingletonPtr(),CSM_CASCADESHADOWMAP ) ;
	Ogre::MaterialManager::getSingleton().addListener( CCascadeShadowMapMaterialListener::getSingletonPtr(),CSM_CASCADESHADOWMAP_TERRAIN ) ;
	Ogre::MaterialManager::getSingleton().addListener( CCascadeShadowMapMaterialListener::getSingletonPtr(),CSM_DEPTHBUFFER ) ;
}